package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 列信息表
 *
 * @author https://gitee.com/deeround
 * @TableName sys_column
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_column")
public class SysColumn extends BaseEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "column_id")
    private String columnId;

    /**
     * 字段名
     */
    @TableField(value = "column_name")
    private String columnName;

    /**
     * 字段中文名
     */
    @TableField(value = "column_label")
    private String columnLabel;

    /**
     * 是否公共列：1 是；0 否
     */
    @TableField(value = "is_public")
    private String isPublic;

    /**
     * 是否允许为空：1 是；0 否
     */
    @TableField(value = "is_allow_null")
    private String isAllowNull;

    /**
     * 数据域
     */
    @TableField(value = "data_scope")
    private String dataScope;

    /**
     * 数据类型
     */
    @TableField(value = "data_type")
    private String dataType;

    /**
     * 字段长度
     */
    @TableField(value = "data_length")
    private Integer dataLength;

    /**
     * 小数位数
     */
    @TableField(value = "data_scale")
    private Integer dataScale;

    /**
     * 默认值
     */
    @TableField(value = "default_value")
    private String defaultValue;


}
